import jiagu

#jiagu.init() # 可手动初始化，也可以动态初始化
class Fastjiagu():
    words=None
    def __init__(self):
        return
    def word(self,str):
        self.words= jiagu.seg(str)
        print(self.words)
    def tag(self):
        tag=jiagu.pos(self.words)
        print(tag)
    def ner(self):
        ner=jiagu.ner(self.words)
        print(ner)
if __name__ == "__main__":
    fj = Fastjiagu()
    str='外媒：谷歌I/O开发者大会将于5月12日举行'
    fj.word(str)
    fj.tag()
    fj.ner()

